package com.fengpt.shardingjdbc.service;

import com.fengpt.shardingjdbc.dto.User;
import com.fengpt.shardingjdbc.mapper.UserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author fengpt
 * @createTime 2020年04月02日 11:31:00
 */
@Service
@Slf4j
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public User findUserById(Long id) {
        return userMapper.findUserById(id);
    }

    @Override
    public List<User> findUserList(List<Long> ids) {

        return userMapper.findUserList(ids);
    }
}
